package Crm;

import java.util.Objects;

public class User {
    private String name;
    private String sex;
    private byte age;
    private String phone;
    private String mail;

    public String getName() {
        return name;
    }

    public String getSex() {
        return sex;
    }

    public byte getAge() {
        return age;
    }

    public String getPhone() {
        return phone;
    }

    public String getMail() {
        return mail;
    }

    public void setName(String name) {
        if (!Objects.equals(name, "")) {
            this.name = name;
        }
    }

    public void setSex(String sex) {
        if (!Objects.equals(sex, "")) {
            this.sex = sex;
        }
    }

    public void setAge(byte age) {
        if (age > 0) {
            this.age = age;
        }
    }

    public void setPhone(String phone) {
        if (!Objects.equals(phone, "")) {
            this.phone = phone;
        }
    }

    public void setMail(String mail) {
        if (!Objects.equals(mail, "")) {
            this.mail = mail;
        }
    }

}
